package com.rest.demo.restdoc;

import com.rest.demo.response.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Administrator
 * @decription
 * @Date 2017-11-15 9:08
 */
@RestController
public class RestDocTestController {

    @GetMapping(value = "/greet")
    public ResponseEntity hello() {
        Map<String,String> result = new HashMap<String,String>();
        result.put("greet","hello");
        result.put("name","yang");
        return new ResponseEntity().success(result);
    }
}
